package com.arcvideo.acsplayer.utils;

import android.content.Context;

import com.arcvideo.acsplayer.config.ApplicationConfig;

public class ErrorUtil {
	public static void showToast(Context context, int errorCode, int defaultMsg) {
		switch (errorCode) {
			case ApplicationConfig.SUCCESS :
				ToastUtil.showShort(context, context.getResources().getText(defaultMsg));
				break;
			default :
				ToastUtil.showShort(context, context.getResources().getText(defaultMsg));
				break;
		}

	}
}
